<template>
  <div>
    父组件
    <h4>{{ fatherNum }}</h4>
    <hr />
    <SyncSon @xxx="fatherxxx(1, $event)"></SyncSon>
    <SyncSon @xxx="fatherxxx(2, $event)"></SyncSon>
  </div>
</template>

<script>
import SyncSon from './SyncSon.vue'
export default {
  components: { SyncSon },
  data () {
    return {
      fatherNum: 20
    }
  },
  methods: {
    fatherxxx (a, b) {
      console.log(a, b)
    }
  }
}
</script>

<style lang="less" scoped></style>
